package com.itheima.domain;
/*
    	定义ECar类属性有：
		brand品牌String、price价格double、km已行驶距离int
		提供空参、带参构造
		提供getXxx()、setXxx()方法
 */
public class ECar {
    //1.成员属性
    private String brand;
    private double price;
    private int km;

    //2.构造方法
    public ECar() {
    }

    public ECar(String brand, double price, int km) {
        this.brand = brand;
        this.price = price;
        this.km = km;
    }

    //3.get set方法
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getKm() {
        return km;
    }

    public void setKm(int km) {
        this.km = km;
    }

    //4.成员方法

}
